package cn.fl.project.service;

import java.util.List;

import net.sf.json.JSONArray;
import cmm.mid.core.framework.page.KeyValueVO;
import cmm.mid.core.framework.page.Pager;
import cn.cmm.base.framework.exception.BaseException;
import cn.fl.project.condition.PrjQuatPrpsAttrQueryCondition;
import cn.fl.project.vo.PrjQuatPrpsAttrPageVO;
import cn.fl.project.vo.PrjQuatPrpsAttrVO;

/**
 * @Description: 项目报价方案配置属性表 客户端服务层接口
 * @Description: 持久层方法名称前缀：新增：insert* 删除：delete* 修改：update* 批量：batch* 查询对象：select* get* find* 查询集合：select*
 * @Description: 业务层方法名称前缀：新增：add* 删除：remove* 修改：modify* 查询对象：select* get* 批量：batch* 查询集合：search*
 */
public interface IPrjQuatPrpsAttrService {
	
	/**
	 * 获取唯一对象
	 * @param id 主键
	 * @return 对象DTO
	 */
	public PrjQuatPrpsAttrVO selectById(Long id)throws BaseException;
	
	/**
	 * 根据方案ID查询配置属性 并封装成页面数据
	 * @param prpsCfgId
	 * @return
	 * @throws BaseException
	 */
	public PrjQuatPrpsAttrPageVO selectPrjQuatPrpsAttrPageVOById(Long prpsCfgId)throws BaseException;
	
	/**
	 * 新增
	 * @param entity
	 * @return
	 */
    public Long add(PrjQuatPrpsAttrVO entity) throws BaseException;
    
    /**
     * 批量新增
     * @param prjQuatPrpsAttrVOList
     * @return
     * @throws BaseException
     */
    public Boolean addBatch(List<PrjQuatPrpsAttrVO> prjQuatPrpsAttrVOList,Long prpsCfgId) throws BaseException;

    /**
     * 删除
     * @param id
     * @return
     */
    public boolean removeById(Long id)throws BaseException;
    
    /**
     * 删除
     * @param ids
     * @return
     */
    public boolean removeByIds(List<Long> ids)throws BaseException;

    /**
     * 修改
     * @param entity
     * @return
     */
    public boolean modify(PrjQuatPrpsAttrVO entity)throws BaseException;

    /**
     * 分页查询所有
     * @param page
     * @return
     */
    public Pager searchListPage(Pager page)throws BaseException;
    
    /**
     * 获取业务类型下拉框数据
     * @return
     * @throws BaseException
     */
    public List<KeyValueVO> searchBusinessTypCdList() throws BaseException;
    /**
     * 获取项目类型下拉框数据
     * @return
     * @throws BaseException
     */
    public List<KeyValueVO> searchPrjTypCdList() throws BaseException;
    /**
     * 获取业务来源下拉框数据
     * @return
     * @throws BaseException
     */
    public List<KeyValueVO> searchBizResCdList() throws BaseException;
    /**
     * 获取经销商类型下拉框数据
     * @return
     * @throws BaseException
     */
    public List<KeyValueVO> searchSplTypCdList() throws BaseException;
    /**
     * 获取是否下拉框数据
     * @return
     * @throws BaseException
     */
    public List<KeyValueVO> searchYesOrNoCdList() throws BaseException;
    /**
     * 获取品牌下拉框数据
     * @return
     * @throws BaseException
     */
    public List<KeyValueVO> searchBrCdList() throws BaseException;
    /**
     *  根据配置code配置值查询方案id
     * @param qc
     * @return
     */
	public List<Long> getIsUseQuatPrpsAttr(PrjQuatPrpsAttrQueryCondition qc)throws BaseException;
    
    /**
     * 获取省区域下拉框数据
     * @return
     * @throws BaseException
     */
    public List<KeyValueVO> searchRegionProvinceList() throws BaseException;
    
    /**
     * 获取省市下拉树 数据
     * @return
     * @throws BaseException
     */
    public JSONArray searchRegionJSONArray() throws BaseException;
    
    /**
     * 获取组织架构下拉树 数据
     * @return
     * @throws BaseException
     */
    public JSONArray searchOrgCdJSONArray() throws BaseException;
    
}
